package com.guys8.cemsbackend.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * (Health)表实体类
 *
 * @author breeze
 * @since 2022-08-24 16:11:31
 */
@Setter
@Getter
@ToString
@Data
@Accessors(chain = true)
public class Health extends Model<Health> {
    @TableId(value = "health_id",type = IdType.AUTO)
    private Integer healthId;
    private Integer userId;
    private Date upTime;
    private float bodyTemperature;
    //健康码状态
    private String hcode;
    @TableLogic
    private Integer isDelete;
    private Integer ext1;
    private String ext2;

    public Health(){}
    public Health(Integer userId,float bodyTemperature,String hcode){
        setUserId(userId);
        Date date=new Date();
        setUpTime(date);
        setBodyTemperature(bodyTemperature);
        setHcode(hcode);
        setIsDelete(0);
    }
}

